//
// Created by zeng on 2021/10/17.
//

#ifndef SENDEMAIL_PUSHPLUS_H
#define SENDEMAIL_PUSHPLUS_H
#define CPPHTTPLIB_OPENSSL_SUPPORT

#include <string>
#include "../Lib/nlohmann/json.hpp"
#include "../Lib/httplib.h"

using json = nlohmann::json;

class pushplus {
private:
    std::string token;
    static httplib::Client cli;
    static httplib::Headers headers;
public:
    pushplus(std::string token);

    int sendText(json data);
};


#endif //SENDEMAIL_PUSHPLUS_H
